package com.breakfast.fun.ui.other.city;

import com.breakfast.fun.base.BaseModel;
import com.breakfast.fun.base.BasePresenter;
import com.breakfast.fun.base.BaseView;
import com.breakfast.fun.data.entity.home.City;
import com.breakfast.fun.data.entity.home.CityData;

import java.util.List;
import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by Administrator on 2016/8/22.
 */
public interface CityContract {

    interface Model extends BaseModel {
        Observable<City> getCityModel(@FieldMap Map<String, String> map);
    }

    interface View extends BaseView {
        void showCity(List<CityData> cityList);

    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void getCity();
    }
}
